package cn.bdqn.pojo.User;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId(type=IdType.AUTO)
    private Integer userId;
    private Integer roleId;

    @TableField(exist = false) //此注解表示该属性不和数据库字段映射
    private String role;

    private String phone;
    private String email;
    private String password;
    private String passwordSalt="z"; //密码盐
    private String userPicture;     //头像
    private String thumbnailImg;    //头像缩略图
    @TableField("`desc`")
    private String desc;    //简介
    private Integer isDel;
    private String userName;
    private Integer sex;
    private Date createTime;
}
